
<?php if(!$this->Session->check('Auth.User')){
	echo '<div class=\'row-fluid\'>';
	echo '<div class=\'span4 offset4 well\'>';
	echo $this->element('Login');
	echo '</div>';
	echo '</div>';
	echo '<div class=\'row-fluid\'>';
	echo '<div class=\'span2 offset5\'>';
	echo '<h1>Ou bien:</h1>';
	echo '</div>';
	echo '</div>';
	}
?>

<h2>
	<?php echo (!$this->Session->check('Auth.User') ? 'Vous ne souhaitez que commander.':'Informations relatives &agrave; la commande.')?>
</h2>
<?php
	echo $this->form->create(false, array(
			'action' => 'details',
			//'class'=>'form-horizontal',
			'inputDefaults' => array(
				'format' => array('before', 'label', 'between', 'input', 'error', 'after'),
				'div' => array('class' => 'control-group'),
				'label' => array('class' => 'control-label'),
				'between' => '<div class="controls">',
				'after' => '</div>',
				'error' => array('attributes' => array('wrap' => 'span', 'class' => 'help-inline')),
			)
		)			
	);
?>

<div class='row-fluid' style='text-align:center'>
	<div class='span4'>
		<?php
			echo $this->element('PersonalDetails');
		?>
	</div>
	<div class='span4'>
		<?php 
			echo $this->element('Address',array('addressType'=>'Billingaddress'));
		?>
	</div>
	<div class='span4'>
		<?php echo $this->element('Address',array('addressType'=>'Shippingaddress'));?>
	</div>
</div>
<div class='agree'>
	<?php echo $this->form->checkbox(
			'agree',array(
				'hiddenField' => false)).'J\'ai pris connaissance des <a href=\'#\' class=\'open_modal_conditions\'>Conditions G&eacute;n&eacute;rales</a>';?>
</div>
<div>
	<div class='control-group'>
		<div class="controls">
			<?php 
			 echo $this->form->submit('Valider',array('name'=>'ValidateCustomerDetails','class'=>'btn btn-primary btn-large'));?>
		</div>
	</div>
</div>
<?php echo $this->form->end();?>